		
<table class="spreadsheet" cellpadding="0" cellspacing="0" style="margin:10px auto">
	<thead>
		<tr>
			<th>#</th>
		<th><?php echo $this->translate( 'name' )?></th>
			<th><?php echo $this->translate( 'email' )?></th>
			<th><?php echo $this->translate( 'subject' )?></th>
			<th><?php echo $this->translate( 'content' )?></th>
			<th><?php echo $this->translate( 'date' )?></th>
			<th>&nbsp;</th>
			<th>&nbsp;</th>
		</tr>
	</thead>
	<tbody>
		<?php
			if($this->contacts):
			 foreach ($this->contacts as $contact) : ?>
					<tr>
						<td><?php echo $contact->id;?></td>
						<td><?php echo $contact->name;?></td>
						<td><?php echo $contact->email;?></td>
						<td><?php echo $contact->subject;?></td>
						<td><?php echo $contact->content;?></td>
						<td><?php echo $contact->_date;?></td>
						<td><a href="<?php echo $this->url(array(
																		'module' => 'admin',
																		'controller' => 'contacts',
																		'action' => 'edit',
																		'id' =>  $contact->id));?>">Edit</a></td>
						<td><a href="<?php echo $this->url(array(
																		'module' => 'admin',
																		'controller' => 'contacts',
																		'action' => 'delete',
																		'id' =>  $contact->id));?>">Delete </a></td>
						
					</tr><?php
				 endforeach;
			endif?>
	</tbody>
</table>